package cn.itcast.dao;

import cn.itcast.entity.Result;
import cn.itcast.pojo.Member;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface MemberDao {
    /**
     * 条件查询会员信息
     *
     * @param queryString
     * @return
     */
    Page<Member> selectByCondition(String queryString);

    /**
     * 新增会员
     * @param member
     */
    void addMember(Member member);

    void update(Member member);

    Member findById(Integer id);

    Member findByTelephone(String phone);


    @Insert("insert into t_member value(name,phoneNumber)")
    void add(Member member);

}
